package cn.wdcode.demo.entity;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 登录信息表
 * </p>
 *
 * @author wudi
 * @since 2016-12-20
 */
@TableName("sys_login_info")
public class LoginInfo extends Model<LoginInfo> {

    private static final long serialVersionUID = 1L;

	/**
	 * 账户号
	 */
	@TableId(value="ACCOUNT")
	private String account;
	/**
	 * 用户ID
	 */
	@TableField(value="USER_ID")
	private String userId;
	/**
	 * 登录IP
	 */
	@TableField(value="LOGN_IP")
	private String lognIp;
	/**
	 * 登录系统ID
	 */
	@TableField(value="SYS_ID")
	private String sysId;
	/**
	 * 随机数
	 */
	@TableField(value="RANDOM")
	private String random;
	/**
	 * 本次登录时间
	 */
	@TableField(value="LOGN_TIME")
	private String lognTime;
	/**
	 * 预留字段1
	 */
	@TableField(value="PRESET1")
	private String preset1;
	/**
	 * 预留字段2
	 */
	@TableField(value="PRESET2")
	private String preset2;


	public String getAccount() {
		return account;
	}

	public void setAccount(String account) {
		this.account = account;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public String getLognIp() {
		return lognIp;
	}

	public void setLognIp(String lognIp) {
		this.lognIp = lognIp;
	}

	public String getSysId() {
		return sysId;
	}

	public void setSysId(String sysId) {
		this.sysId = sysId;
	}

	public String getRandom() {
		return random;
	}

	public void setRandom(String random) {
		this.random = random;
	}

	public String getLognTime() {
		return lognTime;
	}

	public void setLognTime(String lognTime) {
		this.lognTime = lognTime;
	}

	public String getPreset1() {
		return preset1;
	}

	public void setPreset1(String preset1) {
		this.preset1 = preset1;
	}

	public String getPreset2() {
		return preset2;
	}

	public void setPreset2(String preset2) {
		this.preset2 = preset2;
	}

	@Override
	protected Serializable pkVal() {
		return this.account;
	}

}
